from rest_framework import serializers
from rest_framework.serializers import ModelSerializer

from goods.models import GoodsVisitCount


class GoodsVisitCountSerializer(ModelSerializer):
    category = serializers.StringRelatedField(read_only=True)
    class Meta:
        model = GoodsVisitCount
        fields = '__all__'